package com.bdqn.t350.dao;

import com.bdqn.t350.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    public int count();

    public List<User> getUserListByPojo(@Param("userCode") String userCode, @Param("userName1") String userName);

    public List<User> getUserListByPojoMap(Map map);

    public List<User> getUserListByUserCode(@Param("userCode") String userCode);

    public List<User> selectUserAndAddress(@Param("userCode") String userCode);

    public int add(User user);

    public List<User> selectList(@Param("userCode") String userCode, @Param("userName") String userName);

    public int update(User user);

    public List<User> selectPageList(@Param("userCode") String userCode, @Param("userName") String userName,
                                     @Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);


    public List<User> selectByIdList(List<Integer> list);

    public List<User> selectByIdArr(Integer[] arr);

    public List<User> selectByIdMap(Map<String, Object> map);
}
